n = input("请输入一任意自然数:")
if((n[0] == n[4]) & (n[1]==n[3])):
      print("yes")
else:
      print("NO")
